package com.sc.springboot.service;

import com.sc.springboot.bean.Teacher;
import com.sc.springboot.dao.TeacherDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class TeacherService {

    @Autowired
    TeacherDao teacherDao;

    public List<Teacher> findAll() {
        return teacherDao.findAll();
    }

}
